<template>
  <div class="weui-uploader__bd">
    <ul class="weui-uploader__files" id="uploaderFiles" >
      <li class="weui-uploader__file weui-uploader__file_status" v-for="(item,index) in images" :key="index"  v-if="images.length" :style="{backgroundImage:'url('+item+')'}" >
        <div class="weui-uploader__file-content" @click="remove(index)">
          <i class="weui-icon-warn"></i>
        </div>
      </li>
      <!-- <li class="weui-uploader__file" style="background-image:url(./images/pic_160.png)"></li>
      <li class="weui-uploader__file" style="background-image:url(./images/pic_160.png)"></li>
      <li class="weui-uploader__file weui-uploader__file_status" style="background-image:url(./images/pic_160.png)">
            <div class="weui-uploader__file-content">
                <i class="weui-icon-warn"></i>
            </div>
        </li> -->

    </ul>
    <div class="weui-uploader__input-box" >
      <input id="uploaderInput" @click="upload" class="weui-uploader__input" type="file" accept="image/*" multiple="">
    </div>
  </div>
</template>

<script>
    export default {
        name: "index"
    }
</script>

<style scoped>

</style>
